
#include<iostream>
using namespace std;
#include"list.h"
int main()
{
	dm::list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	lt.push_back(5);
	lt.push_back(6);
	lt.pop_back();
	lt.pop_front();
	dm::list<int>::iterator it = lt.begin();
	lt.insert(it, 0);
	it = lt.end();
	lt.insert(it, 0);
	for (auto e : lt)
	{
		cout << e << " ";
	}
	return 0;
}
